﻿@model WebShop.Models.Basket

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Basket</legend>

        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.Customer_Id)
        <table>
            <tr>
                <td>
                    Item Id:   
                </td>
                <td>
                    @Html.DisplayFor(model => model.Item_Code)    
                </td>
            </tr>
            
            <tr>
                <td>
                    Description:  
                </td>
                <td>
                    @Html.DisplayFor(model => model.Item_Description)   
                </td>
            </tr>

            <tr>
                <td>
                    UnitPrice:  
                </td>
                <td>
                    @Html.DisplayFor(model => model.UnitPrice)   
                </td>
            </tr>            
            
            <tr>
                <td>
                    Quantity:  
                </td>
                <td>
            @Html.EditorFor(model => model.Quantity)
            @Html.ValidationMessageFor(model => model.Quantity)
                </td>
            </tr> 

        </table>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
